package com.door.erp.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.door.erp.enums.BaseInfoStatus;

/**
 * 原材料
 * @author yangxuelin
 */
@Entity
@Table(name = "material", catalog = "door")
public class Material implements Serializable {

	private static final long serialVersionUID = 3438437049415239824L;
	
	private long id;
	
	private String name;
	
	//规格
	private String standard;
	
	private String remark;
	
	private BaseInfoStatus status;

	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	@Column(name = "name", nullable = false)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "standard", nullable = false)
	public String getStandard() {
		return standard;
	}

	public void setStandard(String standard) {
		this.standard = standard;
	}

	@Column(name = "remark")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "status", nullable=false)
	public BaseInfoStatus getStatus() {
		return status;
	}

	public void setStatus(BaseInfoStatus status) {
		this.status = status;
	}

}
